package cn.lds.health.service;

import cn.lds.health.dto.ResultDTO;
import cn.lds.health.entity.User;
import cn.lds.health.exception.SysException;

import java.util.List;

/**
 * @ClassName UserService
 * @Description TODO
 * @Author Christopher
 * @Date 2023/8/5 19:29
 * @Version 1.0
 **/

public interface UserService {
	
	/**
	 * 查询全部
	 * @return
	 */
	ResultDTO<List<User>> selectUserAll() throws SysException;
	
	/**
	 * 根据id查询
	 * @param id
	 * @return
	 */
	ResultDTO<User> selectUserById(Long id) throws SysException;
	
	/**
	 * 用户登录
	 * @param user
	 * @return
	 */
	ResultDTO<User> loginUser(User user);
	
	
	public ResultDTO selectUserByIdNoOrMobileNo(String idNo,String mobileNo) throws SysException;
	
	/**
	 * 用户注册
	 * @param user
	 * @return
	 */
	ResultDTO regUser(User user) throws SysException;
}
